package cn.hbu.zlfw.admin.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * @ClassName: RootAdmin 
 * @Description: 总管理员
 * @author 王鹏伟<1223443289@qq.com>
 * @date 2017年11月27日 下午10:34:26 
 * @vsersion:v1.0
 */
@Entity
@Table(name="t_root_admin")
public class RootAdmin implements Serializable{
	
	
	private static final long serialVersionUID = 7967355376795839327L;

	@Id
	@Column(name="id",length=32)
	@GeneratedValue(generator="UUID_KEY")
	@GenericGenerator(name="UUID_KEY",strategy="uuid.hex")
	private String id;
	
	@Column(name="userType",length=20,nullable=false)
	private Integer userType;
	
	@Column(name="userName",length=100,nullable=false)
	private String userName;
	
	@Column(name="schoolType",length=20,nullable=false)
	private Integer schoolType;
	
	@Column(name="password",length=100,nullable=false)
	private String password;
	
	@Column(name="delState",length=20,nullable=false)
	private Integer delState;	//删除状态,1表示已经删除，0表示未删除
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="createTime",nullable=false)
	private Date createTime;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="updateTime",nullable=false)
	private Date updateTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getUserType() {
		return userType;
	}

	public void setUserType(Integer userType) {
		this.userType = userType;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getSchoolType() {
		return schoolType;
	}

	public void setSchoolType(Integer schoolType) {
		this.schoolType = schoolType;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getDelState() {
		return delState;
	}

	public void setDelState(Integer delState) {
		this.delState = delState;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "RootAdmin [id=" + id + ", userType=" + userType + ", userName=" + userName + ", schoolType="
				+ schoolType + ", password=" + password + ", delState=" + delState + ", createTime=" + createTime
				+ ", updateTime=" + updateTime + "]";
	}
}
